package com.googlecode.framework.core.json;

import java.io.Reader;
import java.io.Writer;

public interface JsonMapper {
    
    <T> T fromJson(String content, Class<T> clazz) throws JsonMappingException;
    
    <T> T fromJson(Reader content, Class<T> clazz) throws JsonMappingException;
    
    String toJson(Object value) throws JsonMappingException;
    
    void toJson(Object value, Writer writer) throws JsonMappingException;
}
